@import '@/styles/variables.less';
@import '@/styles/mixins.less';

.video-tool-card {
  .card-base();
  padding: @spacing-lg;
  cursor: pointer;
  transition: all @transition-normal;
  position: relative;
  overflow: hidden;

  &:hover {
    transform: translateY(-2px);
    box-shadow: @shadow-lg;

    .video-tool-card__arrow {
      transform: translateX(4px);
    }
  }

  &--disabled {
    opacity: 0.7;
    cursor: not-allowed;

    &:hover {
      transform: none;
      box-shadow: @shadow-sm;
    }
  }

  &--popular {
    border: 2px solid @primary-200;
    background: linear-gradient(135deg, @primary-50 0%, white 100%);

    &::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 0;
      height: 0;
      border-left: 20px solid transparent;
      border-top: 20px solid @primary-500;
    }
  }

  &__badge {
    position: absolute;
    top: @spacing-sm;
    right: @spacing-sm;
    .flex-start();
    align-items: center;
    gap: 4px;
    background: @primary-500;
    color: white;
    padding: 4px 8px;
    border-radius: @border-radius;
    font-size: @font-size-xs;
    font-weight: 600;
    z-index: 1;
  }

  &__header {
    .flex-start();
    align-items: flex-start;
    gap: @spacing-md;
    margin-bottom: @spacing-md;
  }

  &__icon {
    width: 48px;
    height: 48px;
    .flex-center();
    border-radius: @border-radius-lg;
    flex-shrink: 0;
  }

  &__title-section {
    flex: 1;
  }

  &__title {
    font-size: @font-size-lg;
    font-weight: 600;
    color: @gray-900;
    margin: 0 0 4px 0;
    line-height: 1.3;
  }

  &__status {
    display: inline-block;
    background: @gray-200;
    color: @gray-600;
    font-size: @font-size-xs;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: @border-radius;
  }

  &__arrow {
    width: 32px;
    height: 32px;
    .flex-center();
    color: @gray-400;
    border-radius: 50%;
    background: @gray-100;
    transition: all @transition-fast;
    flex-shrink: 0;
    margin-top: 8px;
  }

  &__description {
    color: @gray-600;
    font-size: @font-size-sm;
    line-height: 1.5;
    margin: 0 0 @spacing-md 0;
  }

  &__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: @spacing-lg;
  }

  &__feature {
    background: @gray-100;
    color: @gray-700;
    font-size: @font-size-xs;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: @border-radius;
  }

  &__footer {
    margin-top: auto;
    padding-top: @spacing-md;
    border-top: 1px solid @gray-100;
  }

  &__action {
    color: @primary-600;
    font-weight: 500;
    font-size: @font-size-sm;
    .flex-start();
    align-items: center;
    gap: @spacing-xs;

    &::after {
      content: '→';
      transition: transform @transition-fast;
    }
  }

  &__coming-soon {
    color: @gray-500;
    font-size: @font-size-sm;
    font-weight: 500;
  }

  // Hover effects for enabled cards
  &:not(&--disabled):hover {
    .video-tool-card__action::after {
      transform: translateX(2px);
    }

    .video-tool-card__arrow {
      background: @primary-100;
      color: @primary-600;
    }
  }
}

// Responsive design
@media (max-width: 768px) {
  .video-tool-card {
    padding: @spacing-md;

    &__header {
      gap: @spacing-sm;
    }

    &__icon {
      width: 40px;
      height: 40px;
    }

    &__title {
      font-size: @font-size-base;
    }

    &__arrow {
      width: 28px;
      height: 28px;
    }
  }
}
